package com.niodata.dp.core.hdfs.legacy;

public class DpFilePermission {

  private final DpFileAction groupAction;
  private final DpFileAction otherAction;

  public DpFilePermission(DpFileAction groupAction, DpFileAction otherAction) {
    this.groupAction = groupAction;
    this.otherAction = otherAction;
  }

  public static DpFilePermission getDirDefault() {
    return new DpFilePermission(DpFileAction.READ, DpFileAction.NONE);
  }

  public static DpFilePermission getFileDefault() {
    return new DpFilePermission(DpFileAction.READ, DpFileAction.NONE);
  }

  public DpFileAction getGroupAction() {
    return groupAction;
  }

  public DpFileAction getOtherAction() {
    return otherAction;
  }
}